package cn.tedu._05mvcboot02.config;

import org.apache.ibatis.annotations.Mapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@MapperScan("cn.tedu._05mvcboot02.mapper")
/**
 * 1.保证优先加载
 *      @Configuration注解：该类为配置类，工程会优先加载
 * 2.保证能够自动扫描
 *      @MapperScan注解：自动扫描注解
 *      会扫描该包及其子孙包的所有类将所有类添加@Mapper
 */
public class MybatisConfig {
}
